package cn.ifavor.googleplay;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import cn.ifavor.googleplay.base.BaseActivity;

public class MyViewActivity extends BaseActivity{
	
	private Bitmap aboutBitmap;

	protected void init() {
		
	};
	
	@Override
	protected void initView() {
		setContentView(R.layout.activity_my_view);
//		 MyView myView = (MyView) findViewById(R.id.myview);
		 
		 ImageView iv = (ImageView) findViewById(R.id.iv);
		 aboutBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.ic_about);
		 iv.setImageBitmap(aboutBitmap);
		 
		 findViewById(R.id.btn).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
//				Canvas canvas = new Canvas(aboutBitmap);
//				canvas.drawColor( getResources().getColor(R.color.vpi__background_holo_dark) );
			}
		});
	}
	
}
